package ch.vd.dec.selt.petale

class Echeance {

	String CODECHEA
	Integer ECHEFACT
	Integer ECHE1RAP
	Integer ECHE2RAP
	Integer ECHE3RAP
	Integer EMIS1RAP
	Integer EMIS2RAP
	Integer EMIS3RAP
	Integer EMISPOUR
	Integer MTFR1RAP
	Integer MTFR2RAP
	Integer MTFR3RAP
	String ENTE1RAP
	String ENTE2RAP
	String ENTE3RAP
	String FLIMPRES
	Integer id
	

	static mapping = {
		table 'TECHEANCE_FAC'
		id generator:'sequence', params:[sequence: 'TECHEANCE_FAC_SEQ']
		version true
	}
	
	static constraints = {
		CODECHEA(size: 5..5, blank: false, unique: true)
		ENTE1RAP(maxSize: 50, nullable: true)
		ENTE2RAP(maxSize: 50, nullable: true)
		ENTE3RAP(maxSize: 50, nullable: true)
		FLIMPRES(maxSize: 1, inList:['O','N'])
	}
	
	String toString(){
		return CODECHEA
	}
}
